﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Diagnostics;
using System.Linq;
using System.ServiceProcess;
using System.Text;
using BlueLotus7.ExchangeCore;

namespace BLueLotus7.ExchangeDistributor
{
    public partial class ExchangeDistributorService : ServiceBase
    {
        DistributorManager manager = new DistributorManager();

        public ExchangeDistributorService()
        {
            InitializeComponent();
        }

        protected override void OnStart(string[] args)
        {
            manager.Start();
        }

        protected override void OnStop()
        {
            manager.Stop();
        }
    }
}
